package com.holly.mapper;

import com.holly.pojo.Clazz;
import com.holly.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author holly
 * @create 2025-07-02 22:57
 */
@Mapper
public interface ClazzMapper {

    List<Clazz> list(ClazzQueryParam param);

    void deleteById(Integer id);

    void insert(Clazz clazz);

    Clazz getById(Integer id);

    void update(Clazz clazz);

    List<Clazz> listAllClazz();
    @MapKey("clazzName")
    List<Map<String, Object>> countClazzDate();
}
